Simple Accordion in jQuery, Accordion in jQuery
I'm sharing simple jQuery Accordion which can be used anywhere in your project where you want to be accordian.
<html>
<head>
<title>Menu Slide Accordian</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script>
jQuery(document).ready(function(){
jQuery('.child-trigger').click(function() {
jQuery(this).parent().siblings('.menu-item-has-children').find('.child-trigger').removeClass('activate');
jQuery(this).parent().siblings('.menu-item-has-children').find('ul.sub-menu').slideUp(250);
jQuery(this).next('ul.sub-menu').slideToggle(250);
jQuery(this).next('ul.sub-menu').children('.menu-item-has-children').find('ul.sub-menu').slideUp(250);
jQuery(this).next('ul.sub-menu').children('.menu-item-has-children').find('.child-trigger').removeClass('activate');
jQuery(this).toggleClass('activate');
return false;
});
});
</script>
<style>
ul,li{
padding:0;
margin:0;
}
.menuSlide {
background: #0aa899;
height: 100%;
max-width: 440px;
width:100%;
top: 0;
position: fixed;
overflow: scroll;
overflow-x: hidden;
overflow-y: auto;
max-height: 100%;
-webkit-transition: all .4s ease;
-moz-transition: all .4s ease;
transition: all .4s ease;
}
ul.sub-menu{
display:none;
}
.menuSlide li {
display: block;
padding-right: 0;
border-bottom: 1px solid rgba(255, 255, 255, .35);
position: relative;
}
.menuSlide li a {
font-size: 16px;
padding: 20px 10px 20px 40px;
line-height: 20px;
display: block;
color: #ffffff;
text-transform: uppercase;
text-decoration:none;
}
.menuSlide ul.sub-menu {
background-color: rgba(10, 156, 142, 0.63);
}
.menuSlide .child-trigger {
display: block;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
width: 55px;
min-width: 55px;
height: 60px;
padding: 0;
border-left: 1px solid rgba(255, 255, 255, .20);
}
.child-trigger i,
.child-trigger i:after {
width: 10px;
height: 1px;
background-color: #fff;
display: block;
}
.child-trigger i {
position: relative;
top: 50%;
margin: 0 auto;
}
.child-trigger i:after {
position: absolute;
content: '';
}
.child-trigger i:after {
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.child-trigger.activate i:after {
-webkit-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
}
</style>
</head>
<body>
<div class="menuSlide">
<ul>
<li class="menu-item"><a href="">Home</a></li>
<li class="menu-item"><a href="">Portfolio</a></li>
<li class="menu-item menu-item-has-children"><a href="#">Slide1</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
<li class="menu-item menu-item-has-children"><a href="#">Slide2</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
<li class="menu-item menu-item-has-children"><a href="#">Slide2</a>
<div class="child-trigger"><i></i></div>
<ul class="sub-menu" style="">
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
<li><a href="">Sub-slide</a></li>
</ul>
</li>
</ul>
</div>
</body>
</html>
NEW88 is an organization that is actively forming and developing with the goal of putting itself at the forefront of the online entertainment and gambling industry. NEW88 is not only a prestigious entertainment venue but also a symbol of innovation and dedication to bringing the best experience to players. - please click here Readmore: new88
G9BET is the leading reputable online bookmaker today that is worth experiencing. The playground is legally licensed from international organizations around the world. - please click here Readmore: g9bet
alo789 is the leading reputable bookmaker brand in Asia that any online betting enthusiast in the market knows. THA Casino is a trusted and familiar "home" address of the betting community in countries in the region, including Vietnam. - please click here Readmore: alo789
Win79 always appears in the list of the most attractive entertainment game portals in Vietnam. Joining this playground, you can freely explore many interesting bets. In addition, you can also receive many other memorable experiences. Readmore: win79
THABET is the leading reputable bookmaker brand in Asia that any online betting enthusiast in the market knows. THA Casino is a trusted and familiar "home" address of the betting community in countries in the region, including Vietnam. - please click here Readmore: thabet
Helo88 (also known as Hello 88) is a bookmaker that is making waves in the online gaming community and those who love online betting. helo88 is not simply a bookmaker, but also a miniature entertainment world. With a series of interesting and exciting betting entertainment games. Readmore: helo88
bj88 is known as one of the newest and most reputable bookmakers in 2024 in Asia. Website bj88 will share all necessary information for those who need it. This is bj88's latest homepage - please click here Readmore: đá gà thomo bj88
Coming to 24N means you are entering the world of professionalism and class that a leading European bookmaker brings. Enjoy the world of quality, reputable online betting that few markets can provide. - please click here Readmore: 24n
The i9bet website will answer the questions asked in the above article. There are articles in this that make better sense. Please click this link for more details Readmore: đăng ký i9bet
Sv388 is a famous brand for providing online cockfighting matches. Here, players will enjoy super classic cockfighting matches of famous cock fighters famous around the world. - please click here Readmore: sv388 trực tiếp
Valuable information. Lucky me I found your website by accident, and I am shocked why this accident didn’t happened earlier! I bookmarked it.
Visit my site : rajacuan69
I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. natural remedies for anxiety
The betting playground is gradually becoming more vibrant than ever with a series of bookmakers from all over. Here, hb88 bookmaker emerged as a central game hall that was warmly received by players across the country. Click here to go to the website Readmore: hb88
The online game betting market is becoming more vibrant than ever with a series of bookmakers being introduced to Vietnam. In which, i9bet stands out with its new way of operating the game, attracting a large number of supporters from bettors everywhere. Today we introduce i9bet - the most popular bookmaker today. Readmore: i9bet
bj38 is known as one of the newest and most reputable bookmakers in 2024 in Asia. Website bj38 will share all necessary information for those who need it. This is bj38's latest homepage - please click here Readmore: bj38
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site